/*
 * @Description:login页reducer
 * @Version: P0600_V1.1
 * @Author: chenm
 * @Date: 2020-09-13 00:12:13
 */
import { INIT_LIST_ACTION } from "./actionTypes";

const defaultState = {
  initHeight: null,
  collapsed: false,
  value: "",
  currentContent: "1",
};

export default (state = defaultState, action) => {
  if (action.type === INIT_LIST_ACTION) {
    const newState = JSON.parse(JSON.stringify(state));
    newState.value = JSON.stringify(action.data);
    return newState;
  }
  return state;
};
